﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Odbc;

namespace kasy_4
{
    class Kasy : Firebird
    {
        /*
        public DataSet GetData(string query, string name)
        {
            OdbcCommand command = new OdbcCommand(query, connection);
            OdbcDataAdapter dataAdapter = new OdbcDataAdapter(command);
            DataSet ds = new DataSet(name);
            dataAdapter.Fill(ds);
            return ds;
        }
        */
        public string Scanner(string EAN)
        {
            string value = string.Empty;
            string query = "select";
            OdbcCommand command = new OdbcCommand(query, connection);
            OdbcDataReader dataReader = command.ExecuteReader();
            if (dataReader.Read())
            {
                value = dataReader[0].ToString();
            }
            return value;
        }

        public string SetValue(string query)
        {
            OdbcCommand com = new OdbcCommand(query,connection);
            com.ExecuteNonQuery();
            return string.Empty;
        }
        

    }
}
